package com.koala.entity;


import lombok.Data;
import lombok.NonNull;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author yantingrui
 * @date 2021/12/7   17:05
 */
@Data
public class Person {

    private String name;

    @NonNull
    private Integer age;

    private List<Car> carList;

    private LocalDateTime birthday;

    private Car car;

    public Person(String name, @NonNull Integer age) {
        this.name = name;
        this.age = age;
    }
}
